/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package slideshow;

import java.io.IOException;
import javax.swing.JFrame;

/**
 *
 * @author Andrea
 */
public class MainWindow extends JFrame {
    
    public MainWindow ( String asTitle, String asDir ) throws IOException {
        
        super ( asTitle );
        
        this.setSize ( 1024, 768 );
        this.setLocation( 100, 100 );
        this.setResizable ( false );
        
        String lsPath = System.getProperty("user.dir");
        
        MainPanel lMainPanel = new MainPanel ( lsPath + "\\" + asDir + "\\", this );
        
        this.add ( lMainPanel );
        
        this.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );
        
    }
    
}
